#include <iostream>
#include <fstream>
#include <vector>
#include <string>
std::vector<std::string> readFileLines(const std::string& filename) {
    std::vector<std::string> lines;
    std::ifstream file(filename);
    if (file.is_open()) {
        std::string line;
        while (std::getline(file, line)) {
            lines.push_back(line);
        }
        file.close();
    } else {
        std::cerr << "Unable to open file: " << filename << std::endl;
    }
    return lines;
}
int main() {
    std::string filename = "example.txt";
    std::vector<std::string> lines = readFileLines(filename);
    for (const auto& line : lines) {
        std::cout << line << std::endl;
    }
    return 0;
}